/*
 * @Author: chenzanjing
 * @Date: 2023-09-25 16:09:40
 * @LastEditors: chenzanjing
 * @LastEditTime: 2023-09-25 16:10:22
 * @FilePath: \zhiji-manage-front\src\api\modules\xinwei-obs\index.ts
 * @Description:
 *
 * Copyright (c) 2023 by ${sylar}, All Rights Reserved.
 */
import { Upload } from "@/api/interface/index";
import http from "@/api";

export default class xinweiObs {
  /**
   * @name 文件上传模块
   */
  // 图片上传
  uploadImg = (params: FormData) => {
    return http.post<Upload.ResFileUrl>(`/xinwei-obs/file/upload/single`, params);
  };

  // 视频上传
  uploadVideo = (params: FormData) => {
    return http.post<Upload.ResFileUrl>(`/xinwei-obs/file/upload/single`, params);
  };

  // 文件上传
  uploadFile = (params: FormData) => {
    return http.post<Upload.ResFileUrl>(`/xinwei-obs/file/upload/single`, params);
  };
}
